const common = require('./webpack.config')
const {merge} = require('webpack-merge')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = merge(common, {
    mode: 'production',
    // 开发环境可定位错误，也不会有隐患
    devtool:"nosource-source-map",
    plugins: [
        new CopyPlugin({
            patterns: [
                { from: "public", to: "public" },
                { from: "src/assets", to: "assets" },
            ]
        })
    ],
})